import 'package:json_annotation/json_annotation.dart';
import 'package:short_drama/models/home_tab_model.dart';

part 'drama_model.g.dart';

@JsonSerializable()
class DramaModel {
  final num? drama_id;
  final String? drama_name;
  final String? drama_desc;
  final String? drama_director;
  final String? drama_image;
  final num? drama_period;
  final num? stock;
  final String? point;
  final num? max_num;
  final String? end_time;
  final String? drama_content;

  const DramaModel(
    this.drama_id,
    this.drama_name,
    this.drama_desc,
    this.drama_director,
    this.drama_image,
    this.drama_period,
    this.stock,
    this.point,
    this.max_num,
    this.end_time,
    this.drama_content,
  );

  factory DramaModel.fromJson(Map<String, dynamic> json) =>
      _$DramaModelFromJson(json);

  Map<String, dynamic> toJson() => _$DramaModelToJson(this);
}
